package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 sys_login_log
 * 
 * @author ruoyi
 * @date 2022-02-10
 */
public class SysLoginLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String recNo;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private String userNo;

    /** 登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginTime;

    /** 登录IP */
    @Excel(name = "登录IP")
    private String loginIp;

    /** 国家 */
    @Excel(name = "国家")
    private String ipInfoCountry;

    /** 省份 */
    @Excel(name = "省份")
    private String ipInfoRegion;

    /** 城市 */
    @Excel(name = "城市")
    private String ipInfoCity;

    /** 运营商 */
    @Excel(name = "运营商")
    private String ipInfoIsp;

    /** 登录来源方式 */
    @Excel(name = "登录来源方式")
    private Integer loginType;

    /** 日志备注 */
    @Excel(name = "日志备注")
    private String loginDesc;

    public void setRecNo(String recNo) 
    {
        this.recNo = recNo;
    }

    public String getRecNo() 
    {
        return recNo;
    }
    public void setUserNo(String userNo) 
    {
        this.userNo = userNo;
    }

    public String getUserNo() 
    {
        return userNo;
    }
    public void setLoginTime(Date loginTime) 
    {
        this.loginTime = loginTime;
    }

    public Date getLoginTime() 
    {
        return loginTime;
    }
    public void setLoginIp(String loginIp) 
    {
        this.loginIp = loginIp;
    }

    public String getLoginIp() 
    {
        return loginIp;
    }
    public void setIpInfoCountry(String ipInfoCountry) 
    {
        this.ipInfoCountry = ipInfoCountry;
    }

    public String getIpInfoCountry() 
    {
        return ipInfoCountry;
    }
    public void setIpInfoRegion(String ipInfoRegion) 
    {
        this.ipInfoRegion = ipInfoRegion;
    }

    public String getIpInfoRegion() 
    {
        return ipInfoRegion;
    }
    public void setIpInfoCity(String ipInfoCity) 
    {
        this.ipInfoCity = ipInfoCity;
    }

    public String getIpInfoCity() 
    {
        return ipInfoCity;
    }
    public void setIpInfoIsp(String ipInfoIsp) 
    {
        this.ipInfoIsp = ipInfoIsp;
    }

    public String getIpInfoIsp() 
    {
        return ipInfoIsp;
    }
    public void setLoginType(Integer loginType) 
    {
        this.loginType = loginType;
    }

    public Integer getLoginType() 
    {
        return loginType;
    }
    public void setLoginDesc(String loginDesc) 
    {
        this.loginDesc = loginDesc;
    }

    public String getLoginDesc() 
    {
        return loginDesc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recNo", getRecNo())
            .append("userNo", getUserNo())
            .append("loginTime", getLoginTime())
            .append("loginIp", getLoginIp())
            .append("ipInfoCountry", getIpInfoCountry())
            .append("ipInfoRegion", getIpInfoRegion())
            .append("ipInfoCity", getIpInfoCity())
            .append("ipInfoIsp", getIpInfoIsp())
            .append("loginType", getLoginType())
            .append("loginDesc", getLoginDesc())
            .toString();
    }
}
